package com.zcm.modules.cxf.services;

import com.zcm.modules.cxf.entity.*;
import com.zcm.modules.nbg.entity.*;
import com.zcm.modules.xgb.entity.XgbHistoryData;
import com.zcm.modules.zhaocai.entity.Dadata;

import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import java.util.List;

@WebService
/*@SOAPBinding(style = Style.RPC) */
public interface Duoduo {

	LoginResponse login(@WebParam(name = "loginName", targetNamespace = "http://services.cxf.modules.zcm.com/") String loginName,
						@WebParam(name = "plainPassword", targetNamespace = "http://services.cxf.modules.zcm.com/") String plainPassword);

	LogoutResponse logout(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header);

	Dadata dddata(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
				  @WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/") String day);
	Dadata ddqsdx(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
				  @WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/") String day);

	// 文章列表接口
	CxfArticleListResponse ls_article(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
                                          @WebParam(name = "pageSize", targetNamespace = "http://services.cxf.modules.zcm.com/") int pageSize,
                                          @WebParam(name = "pageNo", targetNamespace = "http://services.cxf.modules.zcm.com/") int pageNo );

    // 文章详情接口
    CxfArticleDetailResponse show_atricle(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
                                     @WebParam(name = "id", targetNamespace = "http://services.cxf.modules.zcm.com/") String id);
	/**
	 * 短信验证码
	 *
	 * @param mobile
	 * @return
	 */
	@WebResult(name="result")
	boolean msg_code(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
				   @WebParam(name = "mobile", targetNamespace = "http://services.cxf.modules.zcm.com/") String mobile);

	/**
	 * 找回密码短信验证码
	 *
	 * @param loginName
	 * @return
	 */
	@WebResult(name="result")
	boolean forget_msg_code(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
						   @WebParam(name = "loginName", targetNamespace = "http://services.cxf.modules.zcm.com/") String loginName,
							   @WebParam(name = "mobile", targetNamespace = "http://services.cxf.modules.zcm.com/") String mobile);


	/**
	 * 修改密码
	 *
	 * @param  loginName
	 * @return
	 */
	@WebResult(name="result")
	int forget_pwd(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
				  @WebParam(name = "loginName", targetNamespace = "http://services.cxf.modules.zcm.com/") String loginName,
					 @WebParam(name = "password", targetNamespace = "http://services.cxf.modules.zcm.com/") String password,
					 @WebParam(name = "mobile", targetNamespace = "http://services.cxf.modules.zcm.com/") String mobile,
					 @WebParam(name = "smgcode", targetNamespace = "http://services.cxf.modules.zcm.com/") String smgcode
	);

	/**
	 * 注册
	 *
	 * @param
	 * @return
	 */
	@WebResult(name="result")
	int register(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
				 @WebParam(name = "loginName", targetNamespace = "http://services.cxf.modules.zcm.com/") String loginName,
			@WebParam(name = "password", targetNamespace = "http://services.cxf.modules.zcm.com/") String password,
			@WebParam(name = "mobile", targetNamespace = "http://services.cxf.modules.zcm.com/") String mobile,
			@WebParam(name = "smgcode", targetNamespace = "http://services.cxf.modules.zcm.com/") String smgcode
	);

	@WebResult(name="result")
	boolean valid_username(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
						   @WebParam(name = "loginName", targetNamespace = "http://services.cxf.modules.zcm.com/") String loginName);

	@WebResult(name="result")
	boolean valid_mobile(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
						 @WebParam(name = "mobile", targetNamespace = "http://services.cxf.modules.zcm.com/") String mobile);

	@WebResult(name="result")
	CxfResponse<NbgBaseData> nbg_baseData(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
					 @WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/") String day);


	@WebResult(name="result")
	CxfResponse<NbgBeixuan> nbg_beixuan(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
					@WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/")String day) ;


	@WebResult(name="result")
	CxfResponse<NbgFengko> nbg_fengko(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
									  @WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/")String day) ;


	@WebResult(name="result")
	CxfResponse<NbgFengkoDetail> nbg_fengkoDetail(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
												  @WebParam(name = "fengkoId", targetNamespace = "http://services.cxf.modules.zcm.com/")String fengkoId) ;


	@WebResult(name="result")
	CxfResponse<NbgJuechechi> nbg_juechechi(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
											@WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/")String day) ;

	@WebResult(name="result")
	CxfResponse<NbgLtyaogu> nbg_ltyaogu(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
										@WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/")String day) ;

	@WebResult(name="result")
	CxfResponse<NbgZujichi> nbg_zujichi(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
										@WebParam(name = "day", targetNamespace = "http://services.cxf.modules.zcm.com/")String day) ;

	@WebResult(name="result")
	CxfResponse<XgbHistoryData> xgb_ggxx(@WebParam(header=true,name = "header",targetNamespace = "http://services.cxf.modules.zcm.com/") HeaderEntity header ,
										 @WebParam(name = "symbol", targetNamespace = "http://services.cxf.modules.zcm.com/")String symbol);


}
